package com.tencent.stat;

import android.content.Context;
import com.tencent.stat.common.StatLogger;
import com.tencent.stat.event.d;
import com.tencent.stat.event.e;
import java.io.File;
import java.util.Iterator;
import java.util.LinkedHashSet;

class aq
  implements Runnable
{
  private Context a = null;

  public aq(Context paramContext)
  {
    this.a = paramContext;
  }

  public void run()
  {
    Iterator localIterator = StatNativeCrashReport.a(this.a).iterator();
    while (localIterator.hasNext())
    {
      File localFile = (File)localIterator.next();
      Object localObject = StatNativeCrashReport.a(localFile);
      localObject = new d(this.a, StatServiceImpl.a(this.a, false, null), (String)localObject, 3, 10240, new Thread(), null);
      ((d)localObject).a(StatNativeCrashReport.b(localFile));
      new as((e)localObject).a();
      localFile.delete();
      if (!(StatConfig.isDebugEnable()))
        continue;
      StatServiceImpl.f().d("delete tombstone file:" + localFile.getAbsolutePath().toString());
    }
  }
}